<?php
global $_GPC, $_W;
$uniacid = $_W['uniacid'];
$id = $_GPC['id'];
$cate_id = $_GPC['cate_id'];
$res = $this->res;
$plus = $this->plus;
load()->func('tpl');
$setting = $this->baseset($uniacid);
$settings = $this->module['config'];
$allcate = pdo_fetchall("SELECT * FROM " . tablename($this->tablecate) . " WHERE uniacid = '{$_W['uniacid']} ' AND status=1 order by displayorder desc");
$thiscate = pdo_fetch("SELECT * FROM " . tablename($this->tablecate) . " WHERE uniacid = '{$_W['uniacid']}' AND status=1 AND id = '{$cate_id} '");
$_share['title'] = "【" . $thiscate['name'] . "精选】 - " . $setting['fxtit'];
if ($thiscate['pic']) {
	$_share['imgUrl'] = tomedia($thiscate['pic']);
} else {
	$_share['imgUrl'] = tomedia($setting['fxlogo']);
}
$_share['desc'] = $setting['fxdes'];
$_share['link'] = $_W['siteroot'] . "app/index.php?i=" . $_W['uniacid'] . "&c=entry&do=list&m=bsht_tbk&cate_id=" . $thiscate['id'];
$_W['page']['sitename'] = $setting['sitetitle'] . " - " . $thiscate['name'];
$pagename = $thiscate['name'];
include $this->template('list');